package leetcode.code789.EscapeTheGhosts;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class EscapeTheGhosts implements IDebug {

	abstract public boolean escapeGhosts(int[][] ghosts, int[] target);

	@Override
	public void debug1() {
//		Input: ghosts = [[1,0],[0,3]], target = [0,1]
//		Output: true
		int[][] ghosts = new int[][] { { 1, 0 }, { 0, 3 } };
		int[] target = { 0, 1 };
		boolean output  = true;
		boolean result = this.escapeGhosts(ghosts, target);
		HelpDebug.printObject(output);
		HelpDebug.printObject(result);

	}

	@Override
	public void debug2() {
		// Input: ghosts = [[5,0],[-10,-2],[0,-5],[-2,-2],[-7,1]], target = [7,7]
		// Output: false
		int[][] ghosts = new int[][] { {5,0},{-10,-2},{0,-5},{-2,-2},{-7,1} };
		int[] target = { 7,7 };
		boolean output  = false;
		boolean result = this.escapeGhosts(ghosts, target);
		HelpDebug.printObject(output);
		HelpDebug.printObject(result);


	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
